package org.example;

public class Course {
    private  String CName;
    private  int credit;

    @Override
    public String toString() {
        return "Course{" +
                "CName='" + CName + '\'' +
                ", credit=" + credit +
                '}';
    }

    public String getCName() {
        return CName;
    }

    public void setCName(String CName) {
        this.CName = CName;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public Course(String CName, int credit) {
        this.CName = CName;
        this.credit = credit;
    }

    public Course() {
    }
}
